<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ include file="../../base.jsp"%>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>黑马面面管理系统</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <section class="content-header">
        <h1>
            题库管理
            <small>学科管理</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <!-- 正文区域 -->
        <section class="content">
            <div class="box-body">
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#tab-form" data-toggle="tab">新增学科</a>
                        </li>
                    </ul>
        <!--添加内容信息-->
                    <div class="tab-content">
            <form id="editForm" action="${ctx}/store/course?operation=save" method="post">
            <div class="tab-pane active" id="tab-form">
                <div class="row data-type">
                    <div class="col-md-2 title">学科名称</div>
                    <div class="col-md-10 data">
                        <input type="text" class="form-control" placeholder="学科名称" name="name" value="${course.name}">
                    </div>
                    <div class="col-md-2 title">学科简介</div>
                    <div class="col-md-10 data">
                        <input type="text" class="form-control" placeholder="学科简介" name="remark" value="${course.remark}">
                    </div>
                    <div class="col-md-2 title">是否显示</div>
                    <div class="col-md-10 data">
                        <div class="form-group form-inline">
                            <div class="radio"><label><input type="radio" ${course.state==0?'checked':''} name="state" value="0">停用</label></div>
                            <div class="radio"><label><input type="radio" ${course.state==1?'checked':''} name="state" value="1">启用</label></div>
                        </div>
                    </div>
                    <div class="col-md-2 title"></div>
                    <div class="col-md-10 data text-center">
                        <button type="button" onclick='document.getElementById("editForm").submit()'  class="btn bg-maroon">保存</button>
                        <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
                    </div>
                </div>
            </div>
            </form>
                    </div>
                </div>
            </div>
    <!-- 正文区域 /-->
    </section>
</div>
<!-- 内容区域 /-->
</body>

</html>